<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
#outer {
  height: 200px;
  width: 300px;
  margin: 10px;
  border: 50px solid #ddd;
}
#test {
  writing-mode: vertical-lr;
  margin: 10px;
}
</style>
</head>

<body>
<div id="outer">
<div id="test">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>
</div>

</body>
</html>
